package com.ruibang.glass.material.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.teaming.cloud.framework2.common.pojo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 仓库盘点
 * </p>
 *
 * @author mameng
 * @since 2024-04-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "GMaterialWarehouseInventoryCheck对象", description = "仓库盘点")
@TableName(value = "g_material_warehouse_inventory_check")
public class MaterialWarehouseInventoryCheck extends BaseEntity  implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "序号")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "盘点单编号")
    private String inventoryCheckNo;

    @ApiModelProperty(value = "盘点仓库")
    private String warehouseName;

    @ApiModelProperty(value = "盘点仓库Id")
    private String warehouseId;

    @ApiModelProperty(value = "盘点计划描述")
    private String checkPlanDescription;

    @ApiModelProperty(value = "状态")
    private String status;

    @ApiModelProperty(value = "盘点人")
    private String checker;

    @ApiModelProperty(value = "盘点人")
    private String checkerId;

    @ApiModelProperty(value = "盘点人")
    private String warehouseCode;


    @ApiModelProperty(value = "计划盘点日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private LocalDateTime plannedCheckDate;

    @TableField(exist = false)
    @ApiModelProperty(value = "关联物品")
    private List<MaterialCheckItem> materialCheckItemList;


}
